<template>
  <div class="big-back-box">
    <div style="height: 30px"></div>
    <!-- 流程 -->
    <div class="step_con3">
      <div class="step3">
        <div class="step3_img">
          <img src="./image/myicon_form.png" alt="" />
        </div>
        填写表单
      </div>
      <div class="step3">
        <div class="step3_img">
          <img src="./image/myicon_money.png" alt="" />
        </div>
        下单付费
      </div>
      <div class="step3">
        <div class="step3_img">
          <img src="./image/myicon_lawyer.png" alt="" />
        </div>
        匹配律师
      </div>
      <div class="step3 step3_r" style="background: #fff">
        <div class="step3_img" style="background: #fff">
          <img src="./image/myicon_smilestar.png" alt="" />
        </div>
        线下办理
      </div>
    </div>
    <!-- 表单 -->
    <el-card class="box-card" style="margin: 0 auto; width: 60vw">
      <div slot="header" class="clearfix">
        <span style="font-size: 20px; line-height: 2em">公司变更信息填写</span>
        <el-button
          style="float: right; font-size: 15px"
          type="primary"
          size="small"
          @click="changeCompanyInfo"
          >提交</el-button
        >
      </div>
      <div style="display: flex">
        <el-select v-model="type" placeholder="请选择变更信息类型">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
        <div style="margin-left: 20px; line-height: 2em">选项：</div>
        <div style="line-height: 2em; color: red">{{ this.type }}</div>
        <div style="margin-left: 20px; line-height: 2em">价格：</div>
        <div style="line-height: 2em; color: red">{{ this.money }}元</div>
      </div>

      <el-input
        type="textarea"
        placeholder="请输入变更业务描述"
        v-model="represent"
        rows="5"
        style="margin-top: 20px"
      >
      </el-input>
    </el-card>
  </div>
</template>

<script>
// 公司设立
import {CompanyConversion} from '@/api/companyServer.js'

export default {
  data() {
    return {
      options: [
        {
          value: "公司法人变更",
          label: "公司法人变更",
        },
        {
          value: "公司名称变更",
          label: "公司名称变更",
        },
        {
          value: "公司注册信息变更",
          label: "公司注册信息变更",
        },
        {
          value: "其他类型信息变更",
          label: "其他类型信息变更",
        },
      ],
      money: 2000,
      type: "",
      represent: "",
    };
  },
  methods: {
   
    // 确认变更
    changeCompanyInfo(){
       this.$confirm("确定支付?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
        center: true,
      })
        .then(() => {
        let data = {
        type: this.type,
        represent: this.represent
      };
      CompanyConversion(data).then((resp) => {
       if (resp.data.result2) {
              this.$message(resp.data.message1);
            }else{
               this.$message("未登录,请登录");
            }
      })
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消购买",
          });
        });
     

    


   
    }
  },
};
</script>

<style scoped>
img {
  margin-top: 25px;
  margin-left: 5px;
  width: 78px;
  height: 78px;
}
.step_con3 {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
}
.step_con3 .step3 {
  /* width: 175px; */
  height: 270px;
  padding-right: 120px;
  padding-left: 50px;
  background: url(./image/myicon_arrow.png) no-repeat 236px 75px;
  text-align: center;
  font-size: 20px;
  padding-top: 10px;
  color: #3554d3;
  line-height: 35px;
}
.step_con3 .step3 .step3_img {
  width: 130px;
  height: 130px;
  display: block;
  background: #fff;
  border-radius: 50%;
  box-shadow: 1px 7px 16px 2px #dadbdd;
  margin: 0 auto 20px auto;
  position: relative;
}

.text {
  font-size: 14px;
}

.item {
  padding: 18px 0;
}

.box-card {
  width: 480px;
}

/* 大盒子 */
.big-back-box {
  width: 1080px;
  margin: 0 auto;
}
</style>